package com.tansun.easycare.rule.ml.algorithm.entity;

import java.util.List;

import com.tansun.easycare.rule.ml.model.entity.MlDataModel;

/**
 * 模型增删改查Entity
 * @author zkx
 * @version 2018-08-22
 */
public class MlDataModelVO {
	
	private int modelId;		// 模型id
	private String modelName;		// 模型名称
	private String modelStatus;		// 模型状态
	private String modelDesc;		// 模型描述
	private String dataFile;		// 数据文件
	private String algorithmType;		// 算法类型
	
	private List<MlDataModel> mlDataModelList;
	
	public MlDataModelVO() {
		
	}

	public static MlDataModelVO newInstance(MlDataModel mlDataModel){
		MlDataModelVO mlDataModelVO = new MlDataModelVO();
		mlDataModelVO.setAlgorithmType(mlDataModel.getAlgorithmType());
		mlDataModelVO.setDataFile(mlDataModel.getDataFile());
		mlDataModelVO.setModelId(mlDataModel.getModelId());
		mlDataModelVO.setModelName(mlDataModel.getModelName());
		mlDataModelVO.setModelStatus(mlDataModel.getModelStatus());
		mlDataModelVO.setModelDesc(mlDataModel.getModelDesc());
		return mlDataModelVO;
	}
	
	public MlDataModelVO(int modelId, String algorithmType) {
		super();
		this.modelId = modelId;
		this.algorithmType = algorithmType;
	}

	public MlDataModelVO(int modelId) {
		super();
		this.modelId = modelId;
	}

	public int getModelId() {
		return modelId;
	}

	public void setModelId(int modelId) {
		this.modelId = modelId;
	}

	public String getModelName() {
		return modelName;
	}

	public void setModelName(String modelName) {
		this.modelName = modelName;
	}

	public String getModelStatus() {
		return modelStatus;
	}

	public void setModelStatus(String modelStatus) {
		this.modelStatus = modelStatus;
	}

	public String getDataFile() {
		return dataFile;
	}

	public void setDataFile(String dataFile) {
		this.dataFile = dataFile;
	}

	public String getAlgorithmType() {
		return algorithmType;
	}

	public void setAlgorithmType(String algorithmType) {
		this.algorithmType = algorithmType;
	}

	public String getModelDesc() {
		return modelDesc;
	}

	public void setModelDesc(String modelDesc) {
		this.modelDesc = modelDesc;
	}

	public List<MlDataModel> getMlDataModelList() {
		return mlDataModelList;
	}

	public void setMlDataModelList(List<MlDataModel> mlDataModelList) {
		this.mlDataModelList = mlDataModelList;
	}
	
}